summaryrefslogtreecommitdiff
path: root/ui/routes/(app)/ch/[channel]/+page.svelte
blob: 2c1b40aa77fc7242a12b5ba22e04a1553eb1161d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script>
	import { page } from '$app/stores';
	import ActiveChannel from '$lib/components/ActiveChannel.svelte';
	import MessageInput from '$lib/components/MessageInput.svelte';

	$: channel = $page?.params?.channel;
</script>

<div class="active-channel">
	<ActiveChannel {channel} />
</div>
<div class="create-message max-h-full">
	<MessageInput {channel} />
</div>

<style>
	.active-channel {
		height: calc(
			100vh - var(--app-bar-height) - var(--interface-padding) - var(--input-row-height)
		);
		overflow: auto;
	}
</style>